package com.accp.demo.mapper.base;

import java.util.List;

import com.accp.demo.pojo.base.Material;
import com.accp.demo.pojo.base.MaterialType;
import com.accp.demo.pojo.base.Unit;

public interface IMaterialMapper {
	
	/*
	 * 物料主文件新增
	 */
	public  Integer savemateriel(Material pojo);
	
	/*
	 * 修改物料主文件
	 */
	public Integer updatemateriel(Material pojo);
	
	/*
	 * 物料主文件删除
	 */
	public Integer deletemateriel(String materialNo);
	/*
	 * 计量单位新增
	 */
	public Integer saveunit(Unit pojo);
	
	/*
	 * 物料类别新增
	 */
	public Integer savematerialType(MaterialType pojo);
	
	/**
	 * 物料类别查询
	 * @return
	 */
	public List<MaterialType> querryMaterialType();
	/*
	 * 计量单位查询
	 */
	public List<Unit>  queryunitall();
	
	/**
	 * 根据物料编号查询
	 * @param billNo
	 * @return
	 */
	public Material queryMatByNo(String billNo);
}
